how to find if an element is present in a list